package com.sogoodsoft.service.crm.report;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.sogoodsoft.dao.common.CommonHibernateDao;
import com.sogoodsoft.dao.crm.report.ReportDao;
import com.sogoodsoft.service.common.AbstractService;

@Component
@Transactional(readOnly=true)
public class ReportService extends AbstractService<Object, Long> {
	
	@Autowired
	private ReportDao dao;
	
	@Override
	public CommonHibernateDao<Object, Long> getDao() {
		return dao;
	}
	
	public List<Object> query(String sql,Object...obj){
		return dao.query(sql, obj);
	}

}
